import ls from 'local-storage'

export function putValue (name, value) {
  if (value) {
    ls.set(name, value)
  }
}

export function getValue (name, defaultValue) {
  let value = ls.get(name)
  if (value) {
    return value
  }
  return defaultValue
}
